[Zend Framework] How to create Zend_Db_Select with nested queries?

Posted by rasouza on Stack Overflow See other posts from Stack Overflow or by rasouza
Published on 2010-05-16T09:17:45Z Indexed on 2010/05/16 9:20 UTC
Read the original article Hit count: 214

Filed under:
|
|

I don't know if its possible but I'd like to make it a Zend_Db_Select object and I don't know how

SELECT *
FROM MyTable MT1
WHERE MT1.date = (
     SELECT MAX(MT2.date)
     FROM MyTable MT2
)

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-db